import Vue from 'vue'

function errorNotificationMethod (failedVerificationItem) {
    const failedVerificationArr = Object.values(failedVerificationItem)
    if (failedVerificationArr.length) {
        this.$notification.warning({
            message: '提示',
            description: failedVerificationArr[0][0].message,
            duration: 8
        })
    }
}

Vue.prototype.errorNotificationMethod = errorNotificationMethod
